package com.aspose.cells;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;

public class zazg {
   public static String a(String var0) {
      boolean var1 = zar.b(var0);
      if (!var1) {
         return var0;
      } else {
         try {
            ArrayList var2 = new ArrayList();
            zot var3 = new zot();
            var3.a = var0;
            var3.b = null;
            com.aspose.cells.b.a.a.ze.a(var2, (Object)var3);
            zcm var4 = new zcm();
            var4.a(var2, var1);
            var0 = "";
            Collections.reverse(var2);

            zot var6;
            for(Iterator var5 = var2.iterator(); var5.hasNext(); var0 = var0 + var6.a) {
               var6 = (zot)var5.next();
            }

            return var0;
         } catch (Exception var7) {
            return var0;
         }
      }
   }
}
